package com.manzuo.framework.datasource;

/**
 * 保存读写状态的ThreadLocal。
 * 默认初始状态为只读。
 * @author 高恒
 */
public class ReadWriteThreadLocal extends ThreadLocal<ReadWriteFlag> {

	@Override
	protected ReadWriteFlag initialValue() {
		return ReadWriteFlag.read;
	}

}
